<?php
require_once 'conf/conf.php';
require_once 'init.php';
if($auth->isAuth()){ 
    $uid = $_SESSION['uid'];
    $un = $_SESSION['un'];
    $des = $_SESSION['des'];
    $unid = $_SESSION['unid'];
    $unit = $_SESSION['unit'];
    $lid = $_SESSION['lid'];
    $eid = $_SESSION['lid'];
    
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <title>CHIMS @ LRH</title>
  <link rel="shortcut icon" type="image/x-icon" href="img/favi7.png" />
  <!--jQuery Form Validation -->
  <script type="text/javascript" src="assets/js/jquery-1.8.0.min.js"></script>
  <script type="text/javascript" src="assets/js/jquery.validation.js"></script>
  <!--End of jQuery Form Validation -->
  <script language="javascript" src="assets/js/list.js"></script>
  <script language="javascript" src="assets/js/conf.js"></script>
  <script language="JavaScript" src="assets/js/calendar_db.js"></script>
  <link rel="stylesheet" href="assets/css/calendar.css">
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <link href="assets/css/main.css" rel="stylesheet" type="text/css" />
  
  

</head>

<body onload="filldis();">
  <div id="logo"></div>
   
  
  <?php if($auth->isAuth()){ ?>
    <div id="txt"><?php echo "$unit"; ?> - CHIMS @ LRH</div>
    <div id="user"><ul class="user"><li>Currently logged in as <?php echo "$un"; ?></li><li><a href="lout.php">Log out</a></li><li><a href="upro.php">My Profile</a></li><li><a href="help1.php">Help</a></li></ul></div>     
  <?php }else{ ?>
        <div id="txt">Lady Ridgeway Hospital for Children</div>
       <div id="user"><ul class="user"><li>Not logged in</li><li><a href="index.php">Log in</a></li><li><a href="ureg.php">Register</a></li><li><a href="help.php">Help</a></li></ul></div> 
  <?php } ?>
  <div id="join"></div>
  <div id="navi">
    <ul class="navi">
      <li></li>
      <li><a href="welcome.php">Home</a></li>
      <?php if($auth->isAuth()){ ?>
        <li><a href="ptfc.php">Find / Create Patient</a></li>
        <li><a href="welcome.php">Visits</a></li>
        <li><a href="welcome.php">Statistics</a></li>
        <li><a href="doci.php">Files</a></li>
        <?php if ($user->isAdmin()){ ?>
              <li><a href="admin.php">Administration</a></li>
        <?php } ?>
      <?php }else{ ?>
        <li><a href="ureg.php">User Registration</a></li>
      <?php } ?>
      <li><a href="help1.php">Help</a></li>
    </ul>
  </div>
  <div id="blnkl"></div>
  <div id="blnkr"></div>
  <div id="content">
      

